﻿/**
 * DynamicObject类使用示例
 * author: zjh
 * create: 2019/08/02 15:47
 * 
 * */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DynamicObjectClass
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("program start.");

            dynamic teacher = new Teacher();
            teacher.Name = "teacherName";
            teacher.Age = 34;
            teacher.Sex = "female";
            Console.WriteLine("teacher: {0},{1},{2}", teacher.Name, teacher.Age, teacher.Sex);

            Console.WriteLine("program end.");
            Console.ReadLine();
        }
    }
}
